﻿using ZilLion.Service.Core.ConfigManager.Attribute;
using ZilLion.Service.Core.Log.Config;

namespace ZilLion.Service.Core.Log
{
    /// <summary>
    ///     日志配置
    /// </summary>
    [ConfigurationArgument(typeof(LoggerConfig), typeof(NlogConfigProvider))]
    public class LoggerConfig
    {
        /// <summary>
        ///     应用Key值
        /// </summary>
        public string ExceptionUrlApiKey { get; set; }

        /// <summary>
        ///     日志系统URL
        /// </summary>
        public string ExceptionUrl { get; set; }

        /// <summary>
        /// NlogMongo地址
        /// </summary>
        public string NLogMongoConnectionString { get; set; }
        /// <summary>
        /// NlogMongo数据库名称
        /// </summary>
        public string NLogMongoDatabaseName { get; set; }
        /// <summary>
        /// MongoCollectionName
        /// </summary>
        public string MongoCollectionName { get; set; }

        /// <summary>
        /// 强制刷新Nlog配置
        /// </summary>
        public bool ForceRefreshNlog { get; set; }

        /// <summary>
        ///跟踪级别的日志是否发送exceptionless日志系统
        /// </summary>
        public bool SendTraceMessage { get; set; }
    }


}